const formatDateTime = ([year, month, day, hour, minute, second]) => {
  const pad = (num) => String(num).padStart(2, '0');
  return `${year}-${pad(month)}-${pad(day)}  ${pad(hour)}:${pad(minute)}:${pad(second)}`;
};

export default formatDateTime;
